package com.briup.day15;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Arrays;

/**
 * @author 谭梦寻
 * @version 1.1
 */
public class TestFileInputStream3 {
    public static void main(String[] args) throws IOException {
        FileInputStream fileInputStream = new FileInputStream("D:/a.txt");
        byte[] bytes = new byte[20];
        int num = fileInputStream.read(bytes,1,3);
        System.out.println("本次读取的数目："+ num);
        System.out.println(Arrays.toString(bytes));
    }
}
